﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace UnitTestProject1.Test
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public class DeskFanTest
        {
            [Fact]
            public void PowerLowerThanZero_OK()
            {
                var fan = new DeskFan(new PowerSupplyLowerThanZero());
                var expected = "Wont't Work";
                var actual = fan.Work();
                Assert.Equal(expected, actual);
            }
        }

        class PowerSupplyLowerThanZero : IPowerSupply
        {
            public int GetPower()
            {
                return 0;
            }
        }
    }
}
